package com.hyk.learning.dto;

import lombok.*;

import java.util.Map;

/**
 * @className: RpcMessage
 * @author: hyk199710
 * @description: TODO
 * @date: 2024/4/14 21:31
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Builder
@ToString
public class RpcMessage {

    /**
     * rpc message type
     */
    private byte messageType;
    /**
     * serialization type
     */
    private byte codec;
    /**
     * compress type
     */
    private byte compress;
    /**
     * request id
     */
    private int requestId;
    /**
     * request data
     */
    private Object data;

}
